<div class='span12'>
	<h1><?php echo $this->Html->link($page_title, '/'); ?></h1>
	<div class="btn-group">
	  <?php echo $this->Html->link('Nuevo', array('controller'=>'events', 'action'=>'eventstype_add'),array('class'=>'btn btn-success'));?>
	</div>
	<hr>
	<table class="table table-bordered">
		<thead>
			<tr>
				<th>Código</th>
				<th>Nombre</th>
				<th>Campos</th>
				<th>Estado</th>
				<th>Causa</th>
				<th>Creado</th>
				<th>Modificado</th>
				<th colspan="2"></th>
			</tr>
		</thead>
		<tbody>
			<?php foreach($eventsType as $an_type):?>				
				<tr>
					<td><?php echo $an_type['EventsType']['id']?></td>
					<td><?php echo $an_type['EventsType']['name']?></td>
					<td><?php echo $this->Html->link('Editar', array('controller'=>'events', 'action'=>'eventstype_edit_fields', $an_type['EventsType']['id']));?></td>
					<td><?php echo $an_type['EventsType']['status']?></td>
					<td><?php echo $an_type['EventsType']['cause']?></td>
					<td><?php echo $an_type['EventsType']['created']?></td>
					<td><?php echo $an_type['EventsType']['updated']?></td>
					<td style="text-align: center;">
						<?php echo $this->Html->link(
									     '<i class="icon-edit"></i></td>',
									     array('controller'=>'events', 'action'=>'eventstype_add', $an_type['EventsType']['id']),
									     array('escape' => false)
									     );?>
					<td style="text-align: center;"><i class="icon-trash"></i> </td>
				</tr>
			<?php endforeach;?>
		</tbody>
	</table>
	<div class="pagination pagination-right ">
		<ul>
		    <?php
		        echo $this->Paginator->prev(__('prev'), array('tag' => 'li'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a'));
		        echo $this->Paginator->numbers(array('separator' => '','currentTag' => 'a', 'currentClass' => 'active','tag' => 'li','first' => 1));
		        echo $this->Paginator->next(__('next'), array('tag' => 'li','currentClass' => 'disabled'), null, array('tag' => 'li','class' => 'disabled','disabledTag' => 'a'))
		    ?>
		</ul>
	</div>
</div>	
<br>
<br>
<br>
<br>
<br>
<br>
